import { defaultRequest as rq } from "./request";
import type { R } from "./request";

/**
 * 
 * @param params 
 * @returns 
 */
export const logPieApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/guardcat/log/chart/level/pie", { params });
};

export const logLineApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/guardcat/log/chart/level/line", { params });
};

export const logPageApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/guardcat/log/page", { params });
};

export const logSourceApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/guardcat/log/source", { params });
};

export const logAnalyzeApi = (data?: object): Promise<R<any>> => {
  return rq.post<R<any>>("${BSMS_URL}/guardcat/log/analyze", data);
};
